function test(){
	alert(document.getElementById("idUsuario").value);
}
function showJson(){
	
	alert("ok");
	var obj = {
	    "entities": [
	                 {
	                     "name": "Gol g4",
	                     "type": "AUTOMOBILE"
	                 }
	             ]
	         };
	
	var objJson = JSON.stringify(obj);
	alert(objJson);
}

function createEntitie(){
	hr.open("POST", "https://www.googleapis.com/tracks/v1/entities/create", true);
	hr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	hr.onreadystatechange = function() {
		if(hr.readyState == 4 && hr.status == 200) {
			var data = JSON.parse(hr.responseText);
			
		}
	}
	
}